Camera winch control for dynamic monitoring

ABSTRACT

A method for controlling a sensor subsystem, the method including receiving one or more metrics representing one or more characteristics of livestock, including one or more livestock objects, contained in an enclosure and monitored by one or more sensors coupled to a winch subsystem. The method further includes determining a position to move the one or more sensors based on the metrics and determining an instruction that includes information related to a movement of the one or more sensors. The method further includes sending the instruction to the winch subsystem to change the position of the one or more sensors.

FIELD

This specification relates to an automated winch controller foraquaculture systems.

BACKGROUND

Aquaculture involves the farming of aquatic organisms, such as fish,crustaceans, or aquatic plants. In aquaculture, and in contrast tocommercial fishing, freshwater and saltwater fish populations arecultivated in controlled environments. For example, the farming of fishcan involve raising fish in tanks, fish ponds, or ocean enclosures.

A camera system controlled by a human operator can be used to monitorfarmed fish as the fish move throughout their enclosure. When camerasystems are manually controlled, human factors, such as the attentionspan or work schedule of the operator, or the comfort of the humanoperator in extreme weather conditions, can affect the quality ofmonitoring.

SUMMARY

The location of livestock, e.g., fish, in an enclosure can changedepending on a number of factors, e.g., the presence of food, thetemperature of the water, the level of oxygen in the water, or theamount of light. However, biomass monitoring systems that are controlledby human operators can be limited in a number of ways. In one example,an operator may have to sweep a sensor, e.g., a camera, through theenclosure many times to find and confirm a good position at which tomonitor the livestock. In other examples, the quality of the sensor datareceived from human-controlled camera systems can be affected by theoperator's attention to the livestock, or by environmental conditionssuch as the temperature, or the amount of light, precipitation, or surfthat may also impact the ability of the operator to operate the sensor.While the term livestock is used to describe the living contents of theenclosure, generally the enclosure can include any type of aquatic cargosuch as commercial fish (e.g., salmon, tuna, cod) or plant matter (e.g.,seaweed).

To enhance the accuracy of biomass metrics, human operators must alsotake into account many parameters relating to their monitoring, e.g.,the number of fish present in the sensor's range, the distance of thefish from the sensor, what parts of the fish are being monitored, suchas the heads or the sides of the fish. Human-controlled biomassmonitoring systems may therefore be limited by the ability of theoperator to track and synthesize the information provided by the variousparameters to determine changes in the sensor position that will resultin an ideal viewing position of the sensor.

Accordingly, disclosed is a biomass monitoring system that does notsuffer from the deficiencies of prior systems, and that includes abiomass metric generation subsystem that can receive sensor data from asensor subsystem that includes one or more sensors and generate biomassmetrics related to the livestock. A sensor position subsystem can usethe biomass metrics to determine a position for the sensor subsystem.

In one general aspect, a method for controlling a sensor subsystemincludes receiving one or more metrics representing one or morecharacteristics of livestock, including one or more livestock objects,contained in an enclosure and monitored by one or more sensors coupledto a winch subsystem. The method further includes determining a positionto move the one or more sensors based on the metrics and determining aninstruction that includes information related to a movement of the oneor more sensors. The method further includes sending the instruction tothe winch subsystem to change the position of the one or more sensors.

Implementations may include one or more of the following features. Forexample, the characteristics of the livestock can include being hungry,sick, hurt, or dead. The one or more metrics can include a number ofindividual livestock object detections, a number of stereo matchedlivestock tracks, a median distance to the livestock, a median depthoffset of the livestock, a median object track duration of thelivestock, or a median livestock track angle.

In some implementations, the method includes receiving sensor data fromthe one or more sensors and generating, using the sensor data, the oneor more metrics.

In some implementations, the method includes receiving, by the winchsubsystem, the instructions and changing, by the winch subsystem, theposition of the one or more sensors according to the instructions.

In some implementations, the method includes determining an approximatenumber of livestock objects of the livestock and determining that theapproximate number of livestock objects is less than a threshold numberof livestock objects. The information of the instruction can relate to achange in position of the one or more sensors from a first depth withinthe enclosure to a second depth within the enclosure.

In some implementations, the method includes determining a first depthwithin the enclosure of the one or more sensors and calculating a depthoffset value being a difference between the first depth and a referencedepth within the enclosure of the one or more sensors. The method canalso include determining that the depth offset value is greater than orequal to a threshold depth offset value. The information of theinstruction can relate to a change in position of the one or moresensors from the first depth within the enclosure to a second depthwithin the enclosure.

In some implementations, the method includes determining a median trackangle of the livestock, the median track angle corresponding to a medianvalue of one or more angles formed between a track of one or morelivestock objects and a horizontal line. The method can further includedetermining that the median track angle of the livestock is greater thanor equal to a threshold track offset value. The information of theinstruction can relate to a change in an angle of the winch subsystemfrom an initial angle to an updated angle.

In some implementations, the method includes determining a mediandistance from the one or more sensors to the livestock, the mediandistance corresponding to a median value of each distance from each ofthe one or more livestock objects to the one or more sensors. The methodcan further include determining that the median distance is greater thanor equal to an upper threshold median distance. The information of theinstruction can relate to moving the one or more sensors closer to thelivestock.

In some implementations, the method includes determining a mediandistance from the one or more sensors to the livestock, the mediandistance corresponding to a median value of each distance from each ofthe one or more livestock objects to the one or more sensors. The methodcan further include determining that the median distance is less than orequal to a lower threshold median distance. The information of theinstruction can relate to moving the one or more sensors farther fromthe livestock.

In some implementations, the method includes generating, using themetrics, a belief matrix comprising a plurality of entries eachrepresenting a likelihood of livestock being at a certain locationwithin the enclosure. The belief matrix can further include, for each ofthe likelihoods of the plurality of entries, a confidence score for thelikelihood.

In some implementations, the information of the instruction relates tomoving the one or more sensors to a particular location within theenclosure that corresponds to a particular entry of the belief matrixthe particular location having the greatest likelihood of livestockbeing present at the particular location compared to other locationswithin the enclosure.

In some implementations, the one or more sensors include a camera, an IRsensor, a UV sensor, a temperature sensor, a pressure sensor, ahydrophone, a water current sensor, or a water quality sensor such asone that detects oxygen saturation or an amount of a dissolved solid.

The details of one or more implementations are set forth in theaccompanying drawings and the description, below. Other potentialfeatures and advantages of the disclosure will be apparent from thedescription and drawings, and from the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of an example biomass monitoring system and anenclosure that contains aquatic livestock.

FIG. 2 is a flow diagram for an example process of changing a positionof a sensor subsystem, of the biomass monitoring system of FIG. 1,including one or more sensors.

FIG. 3 is a diagram that illustrates a position change of the sensorsubsystem of FIG. 2 to address a scenario in which low or no livestockis detected.

FIG. 4 is a diagram that illustrates a position change of the sensorsubsystem of FIGS. 2-3 to address a scenario in which a median depthoffset of the sensor subsystem is significantly biased.

FIG. 5 is a diagram that illustrates a change in a vertical angle of thesensor subsystem of FIGS. 2-4 to address a scenario in which a medianlivestock track angle is significantly biased.

FIG. 6 is a diagram that illustrates a position change of the sensorsubsystem of FIGS. 2-5 in which a horizontal distance to the livestockis decreased.

FIG. 7 is a diagram that illustrates a position change of the sensorsubsystem of FIGS. 2-6 in which a horizontal distance to the livestockis increased.

Like reference numbers and designations in the various drawings indicatelike elements. The components shown here, their connections andrelationships, and their functions, are meant to be exemplary only, andare not meant to limit the implementations described and/or claimed inthis document.

DETAILED DESCRIPTION

FIG. 1 is a diagram of an example biomass monitoring system 100 and anenclosure 110 that contains aquatic livestock. A Cartesian coordinatesystem is provided for ease of reference. Although FIG. 1 shows theenclosure 110 extending in the xy-plane, the enclosure further extendsin the z-direction, with the positive z-direction extending out of thepage of the drawing.

The livestock can be aquatic creatures, such as fish 120, which swimfreely within the confines of the enclosure 110. In someimplementations, the aquatic livestock 104 stored within the structure102 can include finfish or other aquatic lifeforms. The livestock 104can include for example, juvenile fish, koi fish, sharks, and bass, toname a few examples.

In addition to the aquatic livestock, the enclosure 110 contains water,e.g., seawater, freshwater, or rainwater, although the enclosure cancontain any fluid that is capable of sustaining a habitable environmentfor the aquatic livestock. The biomass monitoring system 100 includes asensor subsystem 102, a sensor position subsystem 104, a biomass metricgeneration subsystem 106, and a winch subsystem 108.

The biomass monitoring system 100 can be used to monitor the aquaticlivestock e.g., to determine the health of the aquatic livestock and tomaintain habitable living conditions for livestock within the enclosure110. The sensor position subsystem 104 can store a current position ofthe sensor subsystem 102 and generate instructions that correspond to aposition to which the sensor subsystem is to be moved. In someimplementations, the biomass monitoring system 100 is anchored to astructure such as a pier, dock, or buoy instead of being confined withinthe enclosure 110. For example, instead of being confined within theenclosure 110, the livestock 120 can be free to roam a body of water,and the biomass monitoring system 100 can monitor livestock within acertain area of the body of water.

The winch subsystem 108 receives the instructions and activates one ormore motors to move the sensor subsystem 102 to the positioncorresponding to the instructions. The sensor subsystem 102 generatessensor data corresponding to the enclosure 110 and the aquatic livestockwithin view of the sensor subsystem. The biomass metric generationsubsystem 106 uses the sensor data to generate one or more metrics,which the sensor position subsystem 104 can use to generate an updatedinstruction. The winch subsystem 108 can receive the updated instructionand move the sensor subsystem 102 to the corresponding position. Thesensor position subsystem 104 can generate instructions automatically.That is, the sensor position subsystem 104 does not require a humanevaluation or input to determine the suitability of the current positionor the next position of the sensor subsystem 102.

The sensor subsystem 102 can include one or more sensors that canmonitor the livestock. The sensor system 229 is waterproof and canwithstand the effects of external forces, such as typical oceancurrents, without breaking. The sensor subsystem 102 can include one ormore sensors that acquire sensor data, e.g., images and video footage,thermal imaging, heat signatures, according to the types of sensor ofthe sensor subsystem. For example, the sensor subsystem 102 can includeone or more of the following sensors: a camera, an IR sensor, a UVsensor, a heat sensor, a pressure sensor, a hydrophone, a water currentsensor, or a water quality sensor such as one that detects oxygensaturation or an amount of a dissolved solid.

The biomass monitoring system 100 can additionally store the sensor datacaptured by the sensor subsystem 102 in a sensor data storage. In someimplementations, the biomass monitoring system can store media, such asvideo and images, as well as sensor data, such as ultrasound data,thermal data, and pressure data, to name a few examples. Additionally,the sensor data can include GPS information corresponding to ageolocation at which the sensor subsystem captured the sensor data.

One or both of the sensor subsystem 102 and the winch subsystem 108 caninclude inertial measurement devices for tracking motion and determiningportion of the sensor subsystem, such as accelerometers, gyroscopes, andmagnetometers. The winch subsystem 108 can also keep track of the amountof cord 114 that has been spooled out and reeled in, to provide anotherinput for estimating the position of the sensor system 102. In someimplementations the winch subsystem 108 can also provide torques appliedto the cord, to provide input on the position and status of the sensorsubsystem 102. In some implementations, the sensor subsystem 102 can beattached to an autonomous underwater vehicle (AUV), e.g., a tetheredAUV.

In the example of FIG. 1, the sensor subsystem 102 includes a camerawhich is fully submerged in the enclosure 110, although in otherembodiments, the sensor subsystem can acquire sensor data withoutcompletely submerging the sensor subsystem, e.g., while the sensorsubsystem is suspended above the water. The position of the sensorsubsystem 102 within the enclosure 110 is determined by instructionsgenerated by the sensor position subsystem 104.

The sensor position subsystem 104 can include one or more computers thatgenerate an instruction corresponding to an x, y, and z-coordinatewithin the enclosure 110. The instruction can also correspond to arotation about an axis of rotation 112 of the biomass monitoring system100, the axis of rotation being coextensive with a portion of a cord 114that extends substantially in the y-direction. Such a rotation changes ahorizontal angle of the sensor subsystem 102, the horizontal angle beingan angle within the xz-plane at which the sensor subsystem receivessensor input. The instruction can also correspond to a rotation about apin 116 that connects the sensor subsystem to components of the winchsubsystem 108. Such a rotation changes a vertical angle of the sensorsubsystem, the vertical angle being measured with respect to thepositive y-axis.

The instruction can describe a possible position, horizontal angle, andvertical angle of the sensor subsystem 102 within the enclosure 110. Forexample, the sensor position subsystem 104 can determine an instructionbased on one or more metrics received from the biomass metric generationsubsystem 106.

In some implementations, the sensor position subsystem 104 can becommunicatively coupled to a computer that can present the sensor datato a caretaker of the aquatic livestock who can observe the livestockand the enclosure 110. The sensor position subsystem 104 can communicatethe instruction to the winch subsystem 108.

The winch subsystem 108 can include one or more motors, one or morepower supplies, and one or more pulleys to which the cord 114, whichsuspends the sensor subsystem 102, is attached. A pulley is a simplemachine used to support movement and direction of a cord, such as cord114. Although the winch system 108 includes a single cord 114, anyconfiguration of one or more cords and one or more pulleys that allowsthe sensor subsystem 102 to move and rotate, as described herein, can beused.

The winch subsystem 108 receives an instruction from the sensor positionsubsystem 104 and activates the one or more motors to move the cord 114.The cord 114, and the attached sensor subsystem 102, can be moved alongthe x, y, and z-directions, to a position corresponding to theinstruction. A motor of the winch subsystem 108 can be used to rotatethe sensor subsystem 102 to adjust the horizontal angle and the verticalangle of the sensor subsystem. A power supply can power the individualcomponents of the winch subsystem. The power supply can provide AC andDC power to each of the components at varying voltage and currentlevels. In some implementations, the winch subsystem can includemultiple winches or multiple motors to allow motion in the x, y, andz-directions.

The sensor position subsystem 104 is communicatively coupled to thebiomass metric generation subsystem 106, allowing the subsystem 106 toreceive sensor data. The biomass metric generation subsystem 106 can usethe sensor data to generate various biomass metrics. For example, forenclosure 110 that contains fish 120, the metrics that the biomassmetric generation subsystem can generate include a number of fishpresent within the sensor's range, an approximate distance of the fishto the sensor, an offset distance of the fish from a horizontal lineformed by the sensor's lens, and an angle of the fish body relative to aplane formed by the front face of the sensor.

The biomass metric generation subsystem 106 can send one or more of thebiomass metrics to the sensor position subsystem 104, which can use themto generate an updated instruction. That is, the sensor positionsubsystem 104 can use the received metrics to dynamically update theposition of the sensor subsystem 102, e.g., so that the winch subsystem108 moves the sensor subsystem to an ideal position for generatingsensor data.

FIG. 1 shows two positions of the same fish, fish 120, at two differenttimes, T₁ and T₂. At times T₁ and T₂ the fish is at positions P₁ and P₂,respectively. The fish 120 moves from position P₁, where it is outlinedwith dotted lines, to position P₂. A track 118 shows the direction inwhich the fish 120 moved with an arrow indicating the direction ofmovement from position P₁ to position P₂. The biomass metric generationsubsystem 106 can generate information that describes the track 118 bymonitoring one or more certain points along one or more fish over acertain timeframe. As shown with respect to FIG. 1, the biomass metricgeneration subsystem 106 monitors a top fin of the fish 120 to generatethe information describing track 118, although other points of anindividual livestock object can be used to generate track information,such as an eye, tail, or snout of the livestock object.

FIG. 1 also shows a track angle, α, that is measured from a horizontalline, parallel to the x-axis, to the track 118. The biomass metricgeneration subsystem 106 can generate information that describes thetrack angle of an individual livestock object using track information ofthe livestock object. While FIG. 1 shows an acute track angle, in someimplementations, the biomass metric generation subsystem 106 cangenerate information corresponding to an obtuse track angle, which isequal to 180°−α. The biomass metric generation subsystem 106 cangenerate track information and track angle information for eachindividual livestock object present in the field of view of the sensorsubsystem 102.

FIG. 2 is a flow diagram for an example process of changing a positionof a sensor subsystem, of a biomass monitoring system, including one ormore sensors. The example process will be described as being performedby a biomass monitoring system of one or more computers programmed inaccordance with this specification. For example, the biomass monitoringsystem 100 can perform the example process.

The biomass monitoring system receives one or more metrics representingone or more characteristics of livestock contained in an enclosure andmonitored by one or more sensors coupled to a winch subsystem (210). Theone or more sensors are part of a sensor subsystem. The metrics can begenerated by a biomass metric generation subsystem communicativelycoupled to a sensor position subsystem. The biomass metric generationsubsystem can store the generated metrics in a data storage. The biomassmetric generation subsystem can periodically generate a new value foreach of the one or more metrics and can update the value of the one ormore metrics in the data storage following each new value that isgenerated. The biomass metric generation subsystem can generate a valuefor a metric every minute or more, every ten minutes or more, or everyhour or more, to name a few examples.

As an example, one of the generated biomass metrics can be a number ofindividual livestock objects, e.g., individual fish of the livestockcontained in the enclosure, that are detected within a certain amount oftime. The biomass metric generation subsystem can detect the livestockobjects using any suitable method of image recognition e.g., using amachine-learned image recognition model or other computer program thatcompares the color, size, or shape of the individual livestock objectsdetected against a reference image of livestock objects.

As another example, one of the generated biomass metrics can be a medianobject track duration of the livestock. The biomass metrics generationsubsystem can determine an object track duration for a livestock object.The track duration for a livestock object is an amount of time that ittakes for the livestock object to move between different positions. Forexample, referring to FIG. 1, the track duration for a livestock objectcan be a change in time between when the livestock object was atposition P₂ and when the livestock object was at position P₁, e.g.,T₂−T₁. The biomass metrics generation subsystem can determine a mediantrack duration from the track durations determined for each of multiplelivestock objects. That is, the median track duration metric representsa median track duration of multiple track durations each determined fora different livestock object.

As another example, one of the generated biomass metrics can be a medianlivestock track angle. The biomass metrics generation subsystem candetermine an object track angle for a livestock object, as describedabove. The biomass metrics generation subsystem can determine a medianlivestock track angle from the livestock track angle determined for eachof multiple livestock objects. That is, the median livestock track anglemetric represents a median livestock track angle of multiple livestocktrack angles each determined for a different livestock object.

As yet another example, one of the generated biomass metrics can be anumber of stereo matched livestock tracks. For embodiments that includea sensor subsystem having multiple sensors, e.g., multiple cameras, thebiomass metric generation subsystem can generate the stereo matchedlivestock tracks metric using sensor data from each of the multiplesensors. Using the sensor data from each of the multiple sensors, thebiomass metric generation subsystem can generate track information forone or more livestock objects.

The stereo matched livestock track metric can indicate a number ofindividual livestock objects that are within a certain range of each ofthe multiple sensors. For example, each of multiple cameras can providesensor data to the biomass metric generation subsystem, which cangenerate separate track information for one or more livestock objectsusing the sensor data received by each of the multiple cameras.Depending on the viewpoints of the multiple cameras, the trackinformation corresponding to each camera may be different. For example afirst camera may capture a full track duration as a fish moves betweentwo positions, while a second camera may capture a fraction of the fulltrack duration. Using track information (e.g., the intersection of theduration where the livestock object is visible in the view of each ofthe one or more cameras) and information related to the position orviewing angle of the multiple cameras, the stereo matched livestocktrack metric can be used to estimate a distance of the fish to thesensor sub system.

As another example, if the biomass metric generation subsystemdetermines that a fish or a fish track is present in the view of one ofthe sensors but not present in the view or views of the other sensor orsensors, the sensor position subsystem can use this information toestimate a distance of the fish to the sensor subsystem or determinethat the fish is less than or equal to a stereo horopter minimumdistance of the sensor subsystem.

As another example, if the biomass generation subsystem determines thata fish is present in the view or views of the one or more sensors of thesensor subsystem, but the sensor position subsystem is not able todiscern certain features of the fish when the biomass metric generationsubsystem is monitoring certain features to generate track information(e.g., features such as the head or tail of the fish or other livestockobject), then the sensor position subsystem can estimate the distance ofthe fish to the sensor subsystem or determine from the stereo matchedlivestock track metric that the sensor subsystem is greater than orequal to an upper threshold distance to the sensor subsystem.

As yet another example, one of the generated biomass metrics can be amedian horizontal distance to the livestock. For example, the biomassmetrics generation subsystem can determine a horizontal distance thatrepresents a distance from the sensor subsystem to an individuallivestock object, as measured in a direction perpendicular to they-direction. The biomass metrics generation subsystem can determine amedian horizontal distance from the horizontal distance determined foreach of multiple livestock objects. That is, the median horizontaldistance metric represents a median distance of multiple distances for acorresponding number of livestock objects.

As another example, one of the generated biomass metrics can be a mediandepth offset of the livestock. The sensor subsystem can be positioned ina certain depth above or below sea level within a plane of the sensorsubsystem that is perpendicular to the xz-plane. The biomass metricsgeneration subsystem can determine a depth offset that represents avertical distance from the plane of the sensor subsystem to anindividual livestock object, as measured in the y-direction. The biomassmetrics generation subsystem can determine a median depth offset fromthe depth offset determined for each of multiple livestock objects. Thatis, the median depth offset metric represents a median depth offset ofmultiple depth offsets for a corresponding number of livestock objects.

The system determines a position to move the one or more sensors basedon the metrics (220). For example, the system can determine that thedepth, or vertical position, of the sensor subsystem, e.g., its positionin the y-direction with respect to FIG. 1, should likely be adjustedbased on the individual livestock object detected metric or the mediandepth offset metric. As another example, the system can determine thatthe horizontal position of the sensor subsystem, e.g., its position inthe x or z-directions, should likely be adjusted based on the medianhorizontal distance metric or the median object track duration metric.As yet another example, the system can determine that a horizontal angleof the sensor subsystem, as measured in the xz-plane, or a verticalangle measured from the positive y-axis, should likely be adjusted basedon the stereo matched livestock track metric or the median livestocktrack angle metric.

The system determines an instruction that includes information relatedto a movement of the one or more sensors (230). The instruction can beencoded in a way that is readable by the winch subsystem, to which thesensor subsystem and one or more sensors are coupled. For example, theinstruction can be an instruction to change the vertical position of thesensor subsystem, e.g., to increase the depth of the sensor subsystem.The instruction can be generated by a sensor position subsystem of thebiomass monitoring subsystem that receives information related to theposition of the one or more sensors from the biomass metric generationsubsystem.

As another example, the sensor position subsystem can describe theinstruction in terms of an (x, y, z) position within the enclosure towhich the sensor subsystem is to be moved, a horizontal angle, φ,measured in the xz-plane, and a vertical angle, θ, measured with respectto the z-axis. In other examples, the instruction can be in terms of amovement in the x, y, or z-directions such as move 10 feet in thehorizontal direction (x), move 20 feet below sea level in the verticaldirection (y), move 15 feet in an orthogonal horizontal direction (z),rotate 30° (e.g., clockwise) in the xz-plane, and rotate 45° e.g.,downwards from the positive z-axis.

An example scheme for describing the current position and angle ofsensor subsystem or the next position and angle of the sensor subsystemis described, although other schemes can be used. For example, thesensor position subsystem can communicate position and sensorinformation using a combination of Cartesian and polar coordinates or acombination of Cartesian and cylindrical coordinates.

The system sends the instruction to the winch subsystem to change theposition of the one or more sensors (240). The sensor position subsystemcan generate the instruction and communicate it to the winch subsystem,which carries out the instruction, e.g., by changing the x, y, and/orz-position of the sensor subsystem and/or the horizontal angle orvertical angle of the sensor subsystem.

In some implementations, the biomass metric generation subsystem can usethe one or more metrics to generate a belief matrix for the enclosure.The belief matrix can partition the enclosure into discrete portions,each portion having a probability assigned to it representing thelikelihood that one or more individual livestock items are present inthe space defined by the portion. For example, the belief matrix canrepresent a likelihood of livestock being at a certain location withinthe enclosure and the likelihood associated with a certain location canbe expressed as an entry in the belief matrix.

In some implementations, a belief matrix can be a 3-dimensional matrixwith entries corresponding to x, y, and z values for portions of theenclosure. In some implementations, a belief matrix can be a4-dimensional matrix with entries corresponding to x, y, and z valuesfor portions of the enclosure and a time value for when theprobabilities of the belief matrix was calculated.

In some implementations, the enclosure is radially symmetric (e.g., acylindrical enclosure) and a belief matrix can partition the enclosureinto discrete portions with respect to a center point of the enclosure.For example, a belief matrix can be a 3-dimensional matrix with entriescorresponding to radial distance from the center point, depth (e.g., asmeasured in the y-direction), and time.

In some implementations, the entries in the belief matrix can representan estimate of the number of livestock objects at a particular locationin the enclosure. In some implementations, the entries in the beliefmatrix can represent an estimate of the number of livestock objects anda confidence associated with the estimate. In some implementations, theentries in the belief matrix can represent an estimate of the number oflivestock objects belonging to a particular category of livestockobjects at a particular location in the enclosure. For example, an entryin the belief matrix can represent an estimate of the number of sickfish at a particular location in the enclosure, a number of mature fishat a particular location in the enclosure, or a number of runts (e.g.,smaller than average livestock objects) at a particular location in theenclosure. In some implementations, the biomass monitoring system canmonitor behaviors of the livestock objects, e.g., behaviors such as whatdepth the livestock objects tend to be located at certain times of theday, during certain seasons, or under certain environmental conditions.In some implementations, the belief matrix can include informationrelated to behaviors of the livestock objects.

The biomass metrics generation subsystem can maintain a belief matrixfor each of multiple hours of multiple days. For example, the biomassmetrics generation subsystem can generate a belief matrix each hour of aday and store the belief matrix in a data storage. The biomass metricsgeneration subsystem can store an hourly belief matrix for multipledays.

In some implementations, the sensor position system can use apreviously-generated belief matrix to determine a position for thesensor subsystem. For example, if the biomass metrics generationsubsystem detects a low count of individual livestock objects, thesensor position subsystem can determine an instruction to move thesensor subsystem to a location of the enclosure corresponding to alocation with a high likelihood of livestock according to apreviously-generated belief matrix. In some implementations, the sensorposition system can use the confidence values of the belief matrix todetermine a position for the sensor subsystem to improve the quality ofcollected data.

FIG. 3 is a diagram that illustrates a position change of the sensorsubsystem 102 to address a scenario in which low or no livestock isdetected. In the example of FIG. 3, the sensor subsystem 102 includes acamera which generates visual sensor data (A).

The sensor data is communicated to the biomass metric generationsubsystem 106, which generates one or more metrics using the sensor data(B). For example, one of the metrics generated by the biomass metricgeneration subsystem 106 can be a number of individual fish detectedwithin a certain amount of time. In this example, only one fish, fish120, is detected, leading to a low individual fish detected metric.

The one or more metrics generated in stage (B) are communicated to thesensor position subsystem 104, which determines, using the metrics, thatlow livestock is detected (C). For example, the sensor positionsubsystem 104 can compare the actual number of fish detected metricgenerated in stage (B) to a threshold value for the metric. If theactual number of fish detected metric is less than the threshold numberof fish detected metric, then the sensor position subsystem 104 candetermine that low livestock is detected and that an instruction to movethe sensor subsystem 102 is to be generated.

The sensor position subsystem 104 determines an instructioncorresponding to a movement of the sensor subsystem 102 and communicatesthe instruction to the winch subsystem 108 (D). In the example of FIG.3, the instruction is for changing the vertical position, or depth, ofthe sensor subsystem 102 in response to the low livestock detected.

The winch subsystem 108 receives the instruction from the sensor controlsubsystem 104 and activates one or more motors to perform theinstruction (E). The sensor subsystem 102 descends in the y-direction(F). As shown in FIG. 3, the livestock is mainly located towards thefloor of the enclosure 110, therefore, lowering the sensor subsystem 102allows the sensor subsystem to better generate sensor data of thelivestock.

In some implementations, during stage (D), the sensor position subsystemcan use a previously-generated belief matrix to determine theinstruction. For example, the sensor position subsystem can use a beliefmatrix generated for the day before the current day to determine aparticular location within the enclosure where there is likely to be atleast a minimum number of fish. The instruction can relate to moving thesensor subsystem to the particular location within the enclosure. Asanother example, the sensor position subsystem can use a belief matrixgenerated one year prior to the current day. As yet another example, thesensor position subsystem can use a belief matrix generated on a dayhaving similar atmospheric or weather conditions as the current day todetermine the instructions.

FIG. 4 is a diagram that illustrates a position change of the sensorsubsystem 102 to address a scenario in which a median depth offset ofthe sensor subsystem is significantly biased. In the example of FIG. 4,the sensor subsystem 102 includes a camera which generates visual sensordata (A).

The sensor data is communicated to the biomass metric generationsubsystem 106, which generates one or more metrics using the sensor data(B). For example, the biomass metric generation subsystem 106 cangenerate a metric corresponding to the median depth offset of thelivestock.

The one or more metrics generated in stage (B) are communicated to thesensor position subsystem 104, which determines, using the metrics, thatthe median depth offset of the livestock is significantly biased (C).For example, the sensor position subsystem 104 can compare the mediandepth offset metric generated in stage (B) to a current depth of thesensor subsystem 102 to determine the bias (e.g., the difference betweenthe median depth offset and the current depth of the sensor subsystem).If the median depth offset bias is larger than or equal to a thresholddepth bias value, then the sensor position subsystem 104 can determinethat an instruction to move the sensor subsystem 102 is to be generated.

The sensor position subsystem 104 determines an instructioncorresponding to a movement of the sensor subsystem 102 and communicatesthe instruction to the winch subsystem 108 (D). The median depth offsetmetric can be a signed value to indicate whether the livestock issubstantially above the sensor subsystem 102 or substantially below thesensor subsystem. In the example of FIG. 4, the sign of the median depthoffset metric indicates that the livestock is substantially above thesensor subsystem 102. The instruction is for changing the verticalposition, or depth, of the sensor subsystem 102 in response to themedian depth offset being significantly biased from the current depth ofthe sensor subsystem 102.

The winch subsystem 108 receives the instruction from the sensor controlsubsystem 104 and activates one or more motors to perform theinstruction (E). The sensor subsystem 102 ascends in the y-direction(F). As shown in FIG. 4, the livestock is mainly located towards thesurface of the water of the enclosure 110, therefore, raising the sensorsubsystem 102 allows the sensor subsystem to better generate sensor dataof the livestock.

FIG. 5 is a diagram that illustrates a change in a vertical angle of thesensor subsystem 102 to address a scenario in which the median livestocktrack angle is significantly biased. In the example of FIG. 5, thesensor subsystem 102 includes a camera which generates visual sensordata (A).

The sensor data is communicated to the biomass metric generationsubsystem 106, which generates one or more metrics using the sensor data(B). For example, the biomass metric generation subsystem 106 cangenerate a metric corresponding to the median livestock track angle. Forexample, the biomass metric generation system can generate track anglesα₁, α₂, and α₃, using the initial positions of three fish (shown indotted lines) and the final positions of the three fish. Each fish andtrack angle α₁, α₂, and α₃ is associated with a different track shownusing dashed lines that extends from the top fin of each fish when it'sat its initial position to the top fin when it's at its final position.The median track angle can be the median value of the three track anglesα₁, α₂, and α₃.

The one or more metrics generated in stage (B) are communicated to thesensor position subsystem 104, which determines, using the metrics, thatthe livestock track angle is significantly biased (C). For example, thesensor position subsystem 104 can determine whether the median livestocktrack angle metric generated in stage (B) is greater than a thresholdlivestock track angle. If the median livestock track angle is largerthan or equal to a threshold livestock track angle, then the livestocktrack angle is significantly biased and the sensor position subsystem104 can determine that an instruction to change the horizontal orvertical angle of the sensor subsystem 102 is to be generated.

In some implementations, the sensor position subsystem 104 can determinewhether the difference between the median livestock track angle and thehorizontal angle of the sensor subsystem 102 or the difference betweenthe median livestock track angle and the vertical angle of the sensorsubsystem is greater than or equal to a threshold difference. If thedifference between the median livestock track angle and the horizontalor vertical angle is greater than or equal to a threshold difference,the sensor position subsystem 104 can determine that an instruction tochange the horizontal or vertical angle of the sensor subsystem 102 isto be generated.

The sensor position subsystem 104 determines an instructioncorresponding to a movement of the sensor subsystem 102 and communicatesthe instruction to the winch subsystem 108 (D). In the example of FIG.5, the median livestock track angle indicates that the fish are movingdownwards in the y-direction (e.g., that the median livestock trackangle is significantly biased). Because the viewing angle of the sensorsubsystem 102 is approximately in line with the x-axis, the sensorsubsystem may be pointed above the positions of the fish that are movingdownwards in the y-direction. Therefore, the instruction determined bythe sensor position subsystem 104 is for changing the vertical angle ofthe sensor subsystem 102 in response to the median livestock track anglebeing significantly biased.

The winch subsystem 108 receives the instruction from the sensor controlsubsystem 104 and activates one or more motors to perform theinstruction (E). The sensor subsystem 102 rotates, as indicated by thecounterclockwise arrows of FIG. 5, changing the vertical angle of thesensor subsystem (F). As shown in FIG. 5, changing the vertical angle ofthe sensor subsystem 102 allows the sensor subsystem to better generatesensor data of the livestock that are located below the sensorsubsystem.

FIG. 6 is a diagram that illustrates a position change of the sensorsubsystem 102 in which a horizontal distance to the livestock isdecreased. In the example of FIG. 6, the sensor subsystem 102 includes acamera which generates visual sensor data (A).

The sensor data is communicated to the biomass metric generationsubsystem 106, which generates one or more metrics using the sensor data(B). For example, the biomass metric generation subsystem 106 cangenerate a metric corresponding to the median horizontal distance to thelivestock. As another example, the biomass metric generation subsystem106 can generate a metric corresponding to the number of stereo matchedlivestock tracks.

The one or more metrics generated in stage (B) are communicated to thesensor position subsystem 104, which determines, using the metrics, ifthe horizontal distance to the livestock is to be updated (C). If themedian horizontal distance to the livestock is greater than or equal toan upper threshold horizontal distance, then the sensor positionsubsystem 104 can determine that an instruction to move the sensorsubsystem 102 is to be generated. Alternatively, or in addition, if thenumber of stereo matched livestock tracks is less than a thresholdnumber of livestock object tracks, then the sensor position subsystem104 can determine that an instruction to move the sensor subsystem 102is to be generated.

The sensor position subsystem 104 determines an instructioncorresponding to a movement of the sensor subsystem 102 and communicatesthe instruction to the winch subsystem 108 (D). In the example of FIG.6, the magnitude of the median horizontal distance metric indicates thatthe horizontal distance to the livestock may be too great for the sensorsubsystem 102 to generate quality sensor data of the livestock. Theinstruction determined by the sensor position subsystem 104 is forchanging the horizontal position of the sensor subsystem 102 in responseto the median horizontal distance to the livestock being greater than orequal to the upper threshold horizontal distance.

The winch subsystem 108 receives the instruction from the sensor controlsubsystem 104 and activates one or more motors to perform theinstruction (E). The sensor subsystem 102 moves in the x-direction (F).As shown in FIG. 6, the livestock is mainly located far to the right ofthe sensor subsystem 102, therefore, moving the sensor subsystem in thex-direction allows the sensor subsystem to better generate sensor dataof the livestock.

FIG. 7 is a diagram that illustrates a position change of the sensorsubsystem 102 in which a horizontal distance to the livestock isincreased. In the example of FIG. 7, the sensor subsystem 102 includes acamera which generates visual sensor data (A).

The sensor data is communicated to the biomass metric generationsubsystem 106, which generates one or more metrics using the sensor data(B). For example, the biomass metric generation subsystem 106 cangenerate a metric corresponding to the median horizontal distance to thelivestock. As another example, the biomass metric generation subsystem106 can generate a metric corresponding to the median object trackduration of the livestock. As yet another example, the biomass metricgeneration subsystem 106 can generate a metric corresponding to thenumber of stereo matched livestock tracks.

The one or more metrics generated in stage (B) are communicated to thesensor position subsystem 104, which determines, using the metrics, ifthe horizontal distance to the livestock is to be updated (C). If themedian horizontal distance to the livestock is less than or equal to alower threshold horizontal distance or if the median object trackduration is less than or equal to a threshold track duration or if thenumber of stereo matched livestock tracks is less than a thresholdnumber of livestock object tracks, then the sensor position subsystem104 can determine that an instruction to move the sensor subsystem 102is to be generated.

The sensor position subsystem 104 determines an instructioncorresponding to a movement of the sensor subsystem 102 and communicatesthe instruction to the winch subsystem 108 (D). In the example of FIG.7, the magnitude of the median horizontal distance metric may indicatethat the horizontal distance to the livestock may be too small for thesensor subsystem 102 to generate quality sensor data of the livestock.Alternatively, or in addition, the magnitude of the median object trackduration metric may indicate that the horizontal distance to thelivestock may be too small for the sensor subsystem 102 to generatequality sensor data of the livestock. Alternatively, or in addition, themagnitude of the stereo matched object track metric may indicate thatthe horizontal distance to the livestock may be too small for the sensorsubsystem 102 to generate quality sensor data of the livestock. Theinstruction determined by the sensor position subsystem 104 is forchanging the horizontal position of the sensor subsystem 102 in responseto the magnitude of the median horizontal distance metric and/or themagnitude of the median object track duration metric and/or themagnitude of the stereo matched object rack metric.

The winch subsystem 108 receives the instruction from the sensor controlsubsystem 104 and activates one or more motors to perform theinstruction (E). The sensor subsystem 102 moves in the x-direction (F).As shown in FIG. 7, most of the fish are located close to the sensorsubsystem 102, therefore, moving the sensor subsystem in the x-directionallows the sensor subsystem to better generate sensor data of thelivestock.

In some implementations, the biomass monitoring system 100 can includean absolute pressure sensor, a sonar sensor, a laser range finder, watertemperature sensor, and ambient light sensors, among other sensors. Thebiomass monitoring system 100 can use the data from these sensors, suchas the absolute pressure sensor or sonar, to measure the distance fromthe sensor subsystem 102 to the water's surface. Additionally, data fromthe sonar sensor can be used to measure the distance from the sensorsystem 102 to the bottom of the enclosure 110. In some implementations,data from the sonar sensor, the laser range finder, and the absolutepressure sensor can be used to determine the location of the sensorsystem 102.

In some implementations, the biomass monitoring system 100 can performdistance measurements between the sensor subsystem 102 and the otherelements within the enclosure 110. For example, the biomass monitoringsystem 100 can use data from a sonar sensor, data from a laser rangefinder, and data from a camera to determine a distance of the sensorsubsystem 102 to other objects within the enclosure 110. The biomassmonitoring system 100 can reconstruct images from a stereo camera of thesensor subsystem 102 using techniques, such as, for example,stereophotogrammetry. Stereophotogrammetry involves estimatingthree-dimensional coordinates of points of an object employingmeasurements made in two or more photographic images taken fromdifferent positions.

A number of implementations have been described. Nevertheless, it willbe understood that various modifications may be made without departingfrom the spirit and scope of the disclosure. For example, various formsof the flows shown above may be used, with steps re-ordered, added, orremoved.

Embodiments of the invention and all of the functional operationsdescribed in this specification can be implemented in digital electroniccircuitry, or in computer software, firmware, or hardware, including thestructures disclosed in this specification and their structuralequivalents, or in combinations of one or more of them. Embodiments ofthe invention can be implemented as one or more computer programproducts, e.g., one or more modules of computer program instructionsencoded on a computer readable medium for execution by, or to controlthe operation of, data processing apparatus. The computer readablemedium can be a machine-readable storage device, a machine-readablestorage substrate, a memory device, a composition of matter affecting amachine-readable propagated signal, or a combination of one or more ofthem. The term “data processing apparatus” encompasses all apparatus,devices, and machines for processing data, including by way of example aprogrammable processor, a computer, or multiple processors or computers.The apparatus can include, in addition to hardware, code that creates anexecution environment for the computer program in question, e.g., codethat constitutes processor firmware, a protocol stack, a databasemanagement system, an operating system, or a combination of one or moreof them. A propagated signal is an artificially generated signal, e.g.,a machine-generated electrical, optical, or electromagnetic signal thatis generated to encode information for transmission to suitable receiverapparatus.

A computer program (also known as a program, software, softwareapplication, script, or code) can be written in any form of programminglanguage, including compiled or interpreted languages, and it can bedeployed in any form, including as a standalone program or as a module,component, subroutine, or other unit suitable for use in a computingenvironment. A computer program does not necessarily correspond to afile in a file system. A program can be stored in a portion of a filethat holds other programs or data (e.g., one or more scripts stored in amarkup language document), in a single file dedicated to the program inquestion, or in multiple coordinated files (e.g., files that store oneor more modules, sub programs, or portions of code). A computer programcan be deployed to be executed on one computer or on multiple computersthat are located at one site or distributed across multiple sites andinterconnected by a communication network.

The processes and logic flows described in this specification can beperformed by one or more programmable processors executing one or morecomputer programs to perform functions by operating on input data andgenerating output. The processes and logic flows can also be performedby, and apparatus can also be implemented as, special purpose logiccircuitry, e.g., an FPGA (field programmable gate array) or an ASIC(application specific integrated circuit).

Processors suitable for the execution of a computer program include, byway of example, both general and special purpose microprocessors, andany one or more processors of any kind of digital computer. Generally, aprocessor will receive instructions and data from a read only memory ora random access memory or both. The essential elements of a computer area processor for performing instructions and one or more memory devicesfor storing instructions and data. Generally, a computer will alsoinclude, or be operatively coupled to receive data from or transfer datato, or both, one or more mass storage devices for storing data, e.g.,magnetic, magneto optical disks, or optical disks. However, a computerneed not have such devices. Moreover, a computer can be embedded inanother device, e.g., a tablet computer, a mobile telephone, a personaldigital assistant (PDA), a mobile audio player, a Global PositioningSystem (GPS) receiver, to name just a few. Computer readable mediasuitable for storing computer program instructions and data include allforms of non volatile memory, media and memory devices, including by wayof example semiconductor memory devices, e.g., EPROM, EEPROM, and flashmemory devices; magnetic disks, e.g., internal hard disks or removabledisks; magneto optical disks; and CD ROM and DVD-ROM disks. Theprocessor and the memory can be supplemented by, or incorporated in,special purpose logic circuitry.

To provide for interaction with a user, embodiments of the invention canbe implemented on a computer having a display device, e.g., a CRT(cathode ray tube) or LCD (liquid crystal display) monitor, fordisplaying information to the user and a keyboard and a pointing device,e.g., a mouse or a trackball, by which the user can provide input to thecomputer. Other kinds of devices can be used to provide for interactionwith a user as well; for example, feedback provided to the user can beany form of sensory feedback, e.g., visual feedback, auditory feedback,or tactile feedback; and input from the user can be received in anyform, including acoustic, speech, or tactile input.

Embodiments of the invention can be implemented in a computing systemthat includes a back end component, e.g., as a data server, or thatincludes a middleware component, e.g., an application server, or thatincludes a front end component, e.g., a client computer having agraphical user interface or a Web browser through which a user caninteract with an implementation of the invention, or any combination ofone or more such back end, middleware, or front end components. Thecomponents of the system can be interconnected by any form or medium ofdigital data communication, e.g., a communication network. Examples ofcommunication networks include a local area network (“LAN”) and a widearea network (“WAN”), e.g., the Internet.

The computing system can include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other.

While this specification contains many specifics, these should not beconstrued as limitations on the scope of the invention or of what may beclaimed, but rather as descriptions of features specific to particularembodiments of the invention. Certain features that are described inthis specification in the context of separate embodiments can also beimplemented in combination in a single embodiment. Conversely, variousfeatures that are described in the context of a single embodiment canalso be implemented in multiple embodiments separately or in anysuitable subcombination. Moreover, although features may be describedabove as acting in certain combinations and even initially claimed assuch, one or more features from a claimed combination can in some casesbe excised from the combination, and the claimed combination may bedirected to a subcombination or variation of a subcombination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various systemcomponents in the embodiments described above should not be understoodas requiring such separation in all embodiments, and it should beunderstood that the described program components and systems cangenerally be integrated together in a single software product orpackaged into multiple software products.

Particular embodiments of the invention have been described. Otherembodiments are within the scope of the following claims. For example,the steps recited in the claims can be performed in a different orderand still achieve desirable results.

What is claimed is:
 1. A method performed by a biomass monitoringsystem, the method comprising: receiving one or more metricsrepresenting one or more characteristics of livestock, including one ormore livestock objects, contained in an enclosure and monitored by oneor more sensors coupled to a winch subsystem, wherein receiving the oneor more metrics representing the one or more characteristics of thelivestock includes determining a median distance from the one or moresensors to the livestock, the median distance corresponding to a medianvalue of each distance from each of the one or more livestock objects tothe one or more sensors; determining that the median distance is greaterthan or equal to an upper threshold median distance; based ondetermining that the median distance is greater than or equal to theupper threshold median distance, determining a position to move the oneor more sensors; determining an instruction that comprises informationrelated to a movement of the one or more sensors, wherein theinformation of the instruction relates to moving the one or more sensorscloser to the livestock; and sending the instruction to the winchsubsystem to change the position of the one or more sensors.
 2. Themethod of claim 1, wherein the one or more metrics includes a number ofindividual livestock object detections, a number of stereo matchedlivestock tracks, a median depth offset of the livestock, a medianobject track duration of the livestock, or a median livestock trackangle.
 3. The method of claim 1, further comprising: receiving sensordata from the one or more sensors; and generating, using the sensordata, the one or more metrics.
 4. The method of claim 1, furthercomprising: receiving, by the winch subsystem, the instructions; andchanging, by the winch subsystem, the position of the one or moresensors according to the instructions.
 5. The method of claim 1, furthercomprising: determining an approximate number of livestock objects ofthe livestock; determining that the approximate number of livestockobjects is less than a threshold number of livestock objects; andwherein the information of the instruction relates to a change inposition of the one or more sensors from a first depth within theenclosure to a second depth within the enclosure.
 6. The method of claim1, further comprising: determining a first depth within the enclosure ofthe one or more sensors; calculating a depth offset value being adifference between the first depth and a reference depth within theenclosure of the one or more sensors; determining that the depth offsetvalue is greater than or equal to a threshold depth offset value; andwherein the information of the instruction relates to a change inposition of the one or more sensors from the first depth within theenclosure to a second depth within the enclosure.
 7. The method of claim1, further comprising: determining a first depth within the enclosure ofthe one or more sensors; calculating a depth offset value being adifference between the first depth and a reference depth within theenclosure of the one or more sensors; determining that the depth offsetvalue is greater than or equal to a threshold depth offset value; andwherein the information of the instruction relates to a change inposition of the one or more sensors from the first depth within theenclosure to a second depth within the enclosure.
 8. The method of claim1, further comprising: determining a median track angle of thelivestock, the median track angle corresponding to a median value of oneor more angles formed between a track of one or more livestock objectsand a horizontal line; determining that the median track angle of thelivestock is greater than or equal to a threshold track offset value;and wherein the information of the instruction relates to a change in anangle of the winch subsystem from an initial angle to an updated angle.9. The method of claim 1, further comprising: determining a mediandistance from the one or more sensors to the livestock, the mediandistance corresponding to a median value of each distance from each ofthe one or more livestock objects to the one or more sensors; anddetermining that the median distance is less than or equal to a lowerthreshold median distance; wherein the information of the instructionrelates to moving the one or more sensors farther from the livestock.10. The method of claim 1, further comprising generating, using themetrics, a belief matrix comprising a plurality of entries eachrepresenting a likelihood of livestock being at a certain locationwithin the enclosure.
 11. The method of claim 10, wherein the beliefmatrix further comprises, for each of the likelihoods of the pluralityof entries, a confidence score for the likelihood.
 12. The method ofclaim 10, wherein the information of the instruction relates to movingthe one or more sensors to a particular location within the enclosurethat corresponds to a particular entry of the belief matrix theparticular location having the greatest likelihood of livestock beingpresent at the particular location compared to other locations withinthe enclosure.
 13. The method of claim 1, wherein the one or moresensors include a camera, an IR sensor, a UV sensor, a temperaturesensor, a pressure sensor, a hydrophone, a water current sensor, or awater quality sensor such as one that detects oxygen saturation or anamount of a dissolved solid.
 14. The method of claim 1, wherein thecharacteristics of the livestock include being hungry, sick, hurt, ordead.
 15. A biomass monitoring system comprising: one or more computersand one or more storage devices storing instructions that are operable,when executed by the one or more computers, to cause the one or morecomputers to perform operations comprising: receiving one or moremetrics representing one or more characteristics of livestock, includingone or more livestock objects, contained in an enclosure and monitoredby one or more sensors coupled to a winch subsystem, wherein receivingthe one or more metrics representing the one or more characteristics ofthe livestock includes determining a median distance from the one ormore sensors to the livestock, the median distance corresponding to amedian value of each distance from each of the one or more livestockobjects to the one or more sensors; determining that the median distanceis greater than or equal to an upper threshold median distance; based ondetermining that the median distance is greater than or equal to theupper threshold median distance, determining a position to move the oneor more sensors; determining an instruction that comprises informationrelated to a movement of the one or more sensors, wherein theinformation of the instruction relates to moving the one or more sensorscloser to the livestock; and sending the instruction to the winchsubsystem to change the position of the one or more sensors.
 16. Thesystem of claim 15, wherein the one or more sensors include a camera, anIR sensor, a UV sensor, a temperature sensor, a pressure sensor, ahydrophone, a water current sensor, or a water quality sensor such asone that detects oxygen saturation or an amount of a dissolved solid.17. The system of claim 15, the operations further comprising:receiving, by the winch subsystem, the instructions; and changing, bythe winch subsystem, the position of the one or more sensors accordingto the instructions.
 18. The system of claim 15, the operations furthercomprising: receiving sensor data from the one or more sensors; andgenerating, using the sensor data, the one or more metrics.
 19. Anon-transitory computer-readable medium storing software comprisinginstructions executable by one or more computers which, upon suchexecution, cause the one or more computers to perform operationscomprising: receiving one or more metrics representing one or morecharacteristics of livestock, including one or more livestock objects,contained in an enclosure and monitored by one or more sensors coupledto a winch subsystem, wherein receiving the one or more metricsrepresenting the one or more characteristics of the livestock includesdetermining a median distance from the one or more sensors to thelivestock, the median distance corresponding to a median value of eachdistance from each of the one or more livestock objects to the one ormore sensors; determining that the median distance is greater than orequal to an upper threshold median distance; based on determining thatthe median distance is greater than or equal to the upper thresholdmedian distance, determining a position to move the one or more sensors;determining an instruction that comprises information related to amovement of the one or more sensors, wherein the information of theinstruction relates to moving the one or more sensors closer to thelivestock; and sending the instruction to the winch subsystem to changethe position of the one or more sensors.
 20. The medium of claim 19,wherein the one or more sensors include a camera, an IR sensor, a UVsensor, a temperature sensor, a pressure sensor, a hydrophone, a watercurrent sensor, or a water quality sensor such as one that detectsoxygen saturation or an amount of a dissolved solid.
 21. The medium ofclaim 19, the operations further comprising: receiving, by the winchsubsystem, the instructions; and changing, by the winch subsystem, theposition of the one or more sensors according to the instructions. 22.The medium of claim 19, the operations further comprising: receivingsensor data from the one or more sensors; and generating, using thesensor data, the one or more metrics.
 23. A method performed by abiomass monitoring system, the method comprising: receiving one or moremetrics representing one or more characteristics of livestock, includingone or more livestock objects, contained in an enclosure and monitoredby one or more sensors coupled to a winch subsystem, wherein receivingthe one or more metrics representing the one or more characteristics ofthe livestock includes determining a median distance from the one ormore sensors to the livestock, the median distance corresponding to amedian value of each distance from each of the one or more livestockobjects to the one or more sensors; based on determining that the mediandistance is less than or equal to the lower threshold median distance,determining a position to move the one or more sensors; determining aninstruction that comprises information related to a movement of the oneor more sensors, wherein the information of the instruction relates tomoving the one or more sensors farther from the livestock; and sendingthe instruction to the winch subsystem to change the position of the oneor more sensors.
 24. The method of claim 23, wherein the one or moresensors include a camera, an IR sensor, a UV sensor, a temperaturesensor, a pressure sensor, a hydrophone, a water current sensor, or awater quality sensor such as one that detects oxygen saturation or anamount of a dissolved solid.
 25. The method of claim 23, furthercomprising: receiving, by the winch subsystem, the instructions; andchanging, by the winch subsystem, the position of the one or moresensors according to the instructions.
 26. The method of claim 23,further comprising: receiving sensor data from the one or more sensors;and generating, using the sensor data, the one or more metrics.
 27. Abiomass monitoring system comprising: receiving one or more metricsrepresenting one or more characteristics of livestock, including one ormore livestock objects, contained in an enclosure and monitored by oneor more sensors coupled to a winch subsystem, wherein receiving the oneor more metrics representing the one or more characteristics of thelivestock includes determining a median distance from the one or moresensors to the livestock, the median distance corresponding to a medianvalue of each distance from each of the one or more livestock objects tothe one or more sensors; based on determining that the median distanceis less than or equal to the lower threshold median distance,determining a position to move the one or more sensors; determining aninstruction that comprises information related to a movement of the oneor more sensors, wherein the information of the instruction relates tomoving the one or more sensors farther from the livestock; and sendingthe instruction to the winch subsystem to change the position of the oneor more sensors.
 28. The system of claim 27, wherein the one or moresensors include a camera, an IR sensor, a UV sensor, a temperaturesensor, a pressure sensor, a hydrophone, a water current sensor, or awater quality sensor such as one that detects oxygen saturation or anamount of a dissolved solid.
 29. The system of claim 27, furthercomprising: receiving, by the winch subsystem, the instructions; andchanging, by the winch subsystem, the position of the one or moresensors according to the instructions.
 30. The system of claim 27, theoperations further comprising: receiving sensor data from the one ormore sensors; and generating, using the sensor data, the one or moremetrics.
 31. A non-transitory computer-readable medium storing softwarecomprising instructions executable by one or more computers which, uponsuch execution, cause the one or more computers to perform operationscomprising: receiving one or more metrics representing one or morecharacteristics of livestock, including one or more livestock objects,contained in an enclosure and monitored by one or more sensors coupledto a winch subsystem, wherein receiving the one or more metricsrepresenting the one or more characteristics of the livestock includesdetermining a median distance from the one or more sensors to thelivestock, the median distance corresponding to a median value of eachdistance from each of the one or more livestock objects to the one ormore sensors; based on determining that the median distance is less thanor equal to the lower threshold median distance, determining a positionto move the one or more sensors; determining an instruction thatcomprises information related to a movement of the one or more sensors,wherein the information of the instruction relates to moving the one ormore sensors farther from the livestock; and sending the instruction tothe winch subsystem to change the position of the one or more sensors.32. The medium of claim 31, wherein the one or more sensors include acamera, an IR sensor, a UV sensor, a temperature sensor, a pressuresensor, a hydrophone, a water current sensor, or a water quality sensorsuch as one that detects oxygen saturation or an amount of a dissolvedsolid.
 33. The medium of claim 31, further comprising: receiving, by thewinch subsystem, the instructions; and changing, by the winch subsystem,the position of the one or more sensors according to the instructions.34. The medium of claim 31, the operations further comprising: receivingsensor data from the one or more sensors; and generating, using thesensor data, the one or more metrics.
 35. A method performed by abiomass monitoring system, the method comprising: receiving one or moremetrics representing one or more characteristics of livestock, includingone or more livestock objects, contained in an enclosure and monitoredby one or more sensors coupled to a winch subsystem, wherein receivingthe one or more metrics representing the one or more characteristics ofthe livestock includes determining a median track angle of thelivestock, the median track angle corresponding to a median value of oneor more angles formed between a track of the one or more livestockobjects and a horizontal line; determining that the median track angleof the livestock is greater than or equal to a threshold track offsetvalue; based on determining that the median track angle of the livestockis greater than or equal to the threshold track offset value,determining a position to move the one or more sensors; determining aninstruction that comprises information related to a movement of the oneor more sensors, wherein the information of the instruction relates to achange in an angle of the winch subsystem from an initial angle to anupdated angle; and sending the instruction to the winch subsystem tochange the position of the one or more sensors.
 36. The method of claim35, wherein the one or more sensors include a camera, an IR sensor, a UVsensor, a temperature sensor, a pressure sensor, a hydrophone, a watercurrent sensor, or a water quality sensor such as one that detectsoxygen saturation or an amount of a dissolved solid.
 37. The method ofclaim 35, further comprising: receiving, by the winch subsystem, theinstructions; and changing, by the winch subsystem, the position of theone or more sensors according to the instructions.
 38. The method ofclaim 35, further comprising: receiving sensor data from the one or moresensors; and generating, using the sensor data, the one or more metrics.39. A biomass monitoring system comprising: receiving one or moremetrics representing one or more characteristics of livestock, includingone or more livestock objects, contained in an enclosure and monitoredby one or more sensors coupled to a winch subsystem, wherein receivingthe one or more metrics representing the one or more characteristics ofthe livestock includes determining a median track angle of thelivestock, the median track angle corresponding to a median value of oneor more angles formed between a track of the one or more livestockobjects and a horizontal line; determining that the median track angleof the livestock is greater than or equal to a threshold track offsetvalue; based on determining that the median track angle of the livestockis greater than or equal to the threshold track offset value,determining a position to move the one or more sensors; determining aninstruction that comprises information related to a movement of the oneor more sensors, wherein the information of the instruction relates to achange in an angle of the winch subsystem from an initial angle to anupdated angle; and sending the instruction to the winch subsystem tochange the position of the one or more sensors.
 40. The system of claim39, wherein the one or more sensors include a camera, an IR sensor, a UVsensor, a temperature sensor, a pressure sensor, a hydrophone, a watercurrent sensor, or a water quality sensor such as one that detectsoxygen saturation or an amount of a dissolved solid.
 41. The system ofclaim 39, the operations further comprising: receiving, by the winchsubsystem, the instructions; and changing, by the winch subsystem, theposition of the one or more sensors according to the instructions. 42.The system of claim 39, the operations further comprising: receivingsensor data from the one or more sensors; and generating, using thesensor data, the one or more metrics.
 43. A non-transitorycomputer-readable medium storing software comprising instructionsexecutable by one or more computers which, upon such execution, causethe one or more computers to perform operations comprising: receivingone or more metrics representing one or more characteristics oflivestock, including one or more livestock objects, contained in anenclosure and monitored by one or more sensors coupled to a winchsubsystem, wherein receiving the one or more metrics representing theone or more characteristics of the livestock includes determining amedian track angle of the livestock, the median track anglecorresponding to a median value of one or more angles formed between atrack of the one or more livestock objects and a horizontal line;determining that the median track angle of the livestock is greater thanor equal to a threshold track offset value; based on determining thatthe median track angle of the livestock is greater than or equal to thethreshold track offset value, determining a position to move the one ormore sensors; determining an instruction that comprises informationrelated to a movement of the one or more sensors, wherein theinformation of the instruction relates to a change in an angle of thewinch subsystem from an initial angle to an updated angle; and sendingthe instruction to the winch subsystem to change the position of the oneor more sensors.
 44. The medium of claim 43, wherein the one or moresensors include a camera, an IR sensor, a UV sensor, a temperaturesensor, a pressure sensor, a hydrophone, a water current sensor, or awater quality sensor such as one that detects oxygen saturation or anamount of a dissolved solid.
 45. The medium of claim 43, the operationsfurther comprising: receiving, by the winch subsystem, the instructions;and changing, by the winch subsystem, the position of the one or moresensors according to the instructions.
 46. The medium of claim 43, theoperations further comprising: receiving sensor data from the one ormore sensors; and generating, using the sensor data, the one or moremetrics.